Release 10.1A: OpenEdge Development:
Progress Dynamics Managers API Reference
changeObjectInstance
This procedure changes the object instance.
Location: ry\app\rydesmngrp.i Parameters:INPUT pcNameContainer AS CHARACTERThe container name. Takes a valid container name or a value of
ALLfor all containers.INPUT pcResultCode AS CHARACTERTakes a valid result code, the name of a Master container, or ? (Unknown) for ALL.
INPUT pcNameObjectInstance AS CHARACTERINPUT pcNameObjectSource AS CHARACTERThe name of the source object to be replaced with the target object. Takes a valid object name.
INPUT pcNameObjectTarget AS CHARACTERThe name of the target object to replace the source object. Takes a valid object name.
INPUT plDeleteObjectSource AS LOGICALDeletes the source object if all instances have been changed and there are no other instance allocations.
INPUT plRemoveDefaultAttributes AS LOGICALRemoves default attributes set for the object instances.
INPUT plRemoveUnusedAttributes AS LOGICALRemoves unused attributes set for the object instances.
OUTPUT piReplacementCount AS INTEGERNotes:
- If both the source and target objects are valid objects and exist within the same class hierarchy, the instance and its attribute values are updated accordingly.
- Unless you specify a container name, the procedure works for all containers. If you specify a container name, it works only for the relevant container.
- If the object exists on a container multiple times, all instances are changed unless a specific object instance name is given.
Examples: See the- All the attribute values contained in the attribute value table that are set against the
INSTANCEowner are set against this object.trgbuReplaceprocedure inry\prc\ryreplinstvp.p.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |